﻿// (c) Nick Polyak 2021 - http://awebpros.com/
// License: MIT License (https://opensource.org/licenses/MIT)
//
// short overview of copyright rules:
// 1. you can use this framework in any commercial or non-commercial 
//    product as long as you retain this copyright message
// 2. Do not blame the author of this software if something goes wrong. 
// 
// Also, please, mention this software in any documentation for the 
// products that use it.

using Avalonia.Controls.Generators;
using Avalonia.Controls.Presenters;

namespace NP.Avalonia.UniDock
{
    public class DockTabsPresenter : ItemsPresenter
    {
        protected override IItemContainerGenerator CreateItemContainerGenerator()
        {
            return new DockTabItemContainerGenerator(this);
        }

        //private static readonly FuncTemplate<IPanel> DefaultPanel =
        //    new FuncTemplate<IPanel>(() => new WrapPanel() { Orientation = Orientation.Horizontal });

        //static DockTabsPresenter()
        //{
        //    ItemsPanelProperty.OverrideDefaultValue<DockTabsPresenter>(DefaultPanel);
        //}
    }
}
